package com.wn.class30.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MyorderShareExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public MyorderShareExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMyorderShareIdIsNull() {
            addCriterion("myorder_share_id is null");
            return (Criteria) this;
        }

        public Criteria andMyorderShareIdIsNotNull() {
            addCriterion("myorder_share_id is not null");
            return (Criteria) this;
        }

        public Criteria andMyorderShareIdEqualTo(Integer value) {
            addCriterion("myorder_share_id =", value, "myorderShareId");
            return (Criteria) this;
        }

        public Criteria andMyorderShareIdNotEqualTo(Integer value) {
            addCriterion("myorder_share_id <>", value, "myorderShareId");
            return (Criteria) this;
        }

        public Criteria andMyorderShareIdGreaterThan(Integer value) {
            addCriterion("myorder_share_id >", value, "myorderShareId");
            return (Criteria) this;
        }

        public Criteria andMyorderShareIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("myorder_share_id >=", value, "myorderShareId");
            return (Criteria) this;
        }

        public Criteria andMyorderShareIdLessThan(Integer value) {
            addCriterion("myorder_share_id <", value, "myorderShareId");
            return (Criteria) this;
        }

        public Criteria andMyorderShareIdLessThanOrEqualTo(Integer value) {
            addCriterion("myorder_share_id <=", value, "myorderShareId");
            return (Criteria) this;
        }

        public Criteria andMyorderShareIdIn(List<Integer> values) {
            addCriterion("myorder_share_id in", values, "myorderShareId");
            return (Criteria) this;
        }

        public Criteria andMyorderShareIdNotIn(List<Integer> values) {
            addCriterion("myorder_share_id not in", values, "myorderShareId");
            return (Criteria) this;
        }

        public Criteria andMyorderShareIdBetween(Integer value1, Integer value2) {
            addCriterion("myorder_share_id between", value1, value2, "myorderShareId");
            return (Criteria) this;
        }

        public Criteria andMyorderShareIdNotBetween(Integer value1, Integer value2) {
            addCriterion("myorder_share_id not between", value1, value2, "myorderShareId");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberIsNull() {
            addCriterion("myorder_number is null");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberIsNotNull() {
            addCriterion("myorder_number is not null");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberEqualTo(String value) {
            addCriterion("myorder_number =", value, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberNotEqualTo(String value) {
            addCriterion("myorder_number <>", value, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberGreaterThan(String value) {
            addCriterion("myorder_number >", value, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberGreaterThanOrEqualTo(String value) {
            addCriterion("myorder_number >=", value, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberLessThan(String value) {
            addCriterion("myorder_number <", value, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberLessThanOrEqualTo(String value) {
            addCriterion("myorder_number <=", value, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberLike(String value) {
            addCriterion("myorder_number like", value, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberNotLike(String value) {
            addCriterion("myorder_number not like", value, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberIn(List<String> values) {
            addCriterion("myorder_number in", values, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberNotIn(List<String> values) {
            addCriterion("myorder_number not in", values, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberBetween(String value1, String value2) {
            addCriterion("myorder_number between", value1, value2, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderNumberNotBetween(String value1, String value2) {
            addCriterion("myorder_number not between", value1, value2, "myorderNumber");
            return (Criteria) this;
        }

        public Criteria andMyorderIdIsNull() {
            addCriterion("myorder_id is null");
            return (Criteria) this;
        }

        public Criteria andMyorderIdIsNotNull() {
            addCriterion("myorder_id is not null");
            return (Criteria) this;
        }

        public Criteria andMyorderIdEqualTo(Integer value) {
            addCriterion("myorder_id =", value, "myorderId");
            return (Criteria) this;
        }

        public Criteria andMyorderIdNotEqualTo(Integer value) {
            addCriterion("myorder_id <>", value, "myorderId");
            return (Criteria) this;
        }

        public Criteria andMyorderIdGreaterThan(Integer value) {
            addCriterion("myorder_id >", value, "myorderId");
            return (Criteria) this;
        }

        public Criteria andMyorderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("myorder_id >=", value, "myorderId");
            return (Criteria) this;
        }

        public Criteria andMyorderIdLessThan(Integer value) {
            addCriterion("myorder_id <", value, "myorderId");
            return (Criteria) this;
        }

        public Criteria andMyorderIdLessThanOrEqualTo(Integer value) {
            addCriterion("myorder_id <=", value, "myorderId");
            return (Criteria) this;
        }

        public Criteria andMyorderIdIn(List<Integer> values) {
            addCriterion("myorder_id in", values, "myorderId");
            return (Criteria) this;
        }

        public Criteria andMyorderIdNotIn(List<Integer> values) {
            addCriterion("myorder_id not in", values, "myorderId");
            return (Criteria) this;
        }

        public Criteria andMyorderIdBetween(Integer value1, Integer value2) {
            addCriterion("myorder_id between", value1, value2, "myorderId");
            return (Criteria) this;
        }

        public Criteria andMyorderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("myorder_id not between", value1, value2, "myorderId");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceIsNull() {
            addCriterion("myorder_total_price is null");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceIsNotNull() {
            addCriterion("myorder_total_price is not null");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceEqualTo(Double value) {
            addCriterion("myorder_total_price =", value, "myorderTotalPrice");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceNotEqualTo(Double value) {
            addCriterion("myorder_total_price <>", value, "myorderTotalPrice");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceGreaterThan(Double value) {
            addCriterion("myorder_total_price >", value, "myorderTotalPrice");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("myorder_total_price >=", value, "myorderTotalPrice");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceLessThan(Double value) {
            addCriterion("myorder_total_price <", value, "myorderTotalPrice");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceLessThanOrEqualTo(Double value) {
            addCriterion("myorder_total_price <=", value, "myorderTotalPrice");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceIn(List<Double> values) {
            addCriterion("myorder_total_price in", values, "myorderTotalPrice");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceNotIn(List<Double> values) {
            addCriterion("myorder_total_price not in", values, "myorderTotalPrice");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceBetween(Double value1, Double value2) {
            addCriterion("myorder_total_price between", value1, value2, "myorderTotalPrice");
            return (Criteria) this;
        }

        public Criteria andMyorderTotalPriceNotBetween(Double value1, Double value2) {
            addCriterion("myorder_total_price not between", value1, value2, "myorderTotalPrice");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIsNull() {
            addCriterion("business_id is null");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIsNotNull() {
            addCriterion("business_id is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessIdEqualTo(Integer value) {
            addCriterion("business_id =", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotEqualTo(Integer value) {
            addCriterion("business_id <>", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdGreaterThan(Integer value) {
            addCriterion("business_id >", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("business_id >=", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLessThan(Integer value) {
            addCriterion("business_id <", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLessThanOrEqualTo(Integer value) {
            addCriterion("business_id <=", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIn(List<Integer> values) {
            addCriterion("business_id in", values, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotIn(List<Integer> values) {
            addCriterion("business_id not in", values, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdBetween(Integer value1, Integer value2) {
            addCriterion("business_id between", value1, value2, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotBetween(Integer value1, Integer value2) {
            addCriterion("business_id not between", value1, value2, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIsNull() {
            addCriterion("business_name is null");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIsNotNull() {
            addCriterion("business_name is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessNameEqualTo(String value) {
            addCriterion("business_name =", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotEqualTo(String value) {
            addCriterion("business_name <>", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameGreaterThan(String value) {
            addCriterion("business_name >", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameGreaterThanOrEqualTo(String value) {
            addCriterion("business_name >=", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLessThan(String value) {
            addCriterion("business_name <", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLessThanOrEqualTo(String value) {
            addCriterion("business_name <=", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLike(String value) {
            addCriterion("business_name like", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotLike(String value) {
            addCriterion("business_name not like", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIn(List<String> values) {
            addCriterion("business_name in", values, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotIn(List<String> values) {
            addCriterion("business_name not in", values, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameBetween(String value1, String value2) {
            addCriterion("business_name between", value1, value2, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotBetween(String value1, String value2) {
            addCriterion("business_name not between", value1, value2, "businessName");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusIsNull() {
            addCriterion("myorder_share_status is null");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusIsNotNull() {
            addCriterion("myorder_share_status is not null");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusEqualTo(Integer value) {
            addCriterion("myorder_share_status =", value, "myorderShareStatus");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusNotEqualTo(Integer value) {
            addCriterion("myorder_share_status <>", value, "myorderShareStatus");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusGreaterThan(Integer value) {
            addCriterion("myorder_share_status >", value, "myorderShareStatus");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("myorder_share_status >=", value, "myorderShareStatus");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusLessThan(Integer value) {
            addCriterion("myorder_share_status <", value, "myorderShareStatus");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusLessThanOrEqualTo(Integer value) {
            addCriterion("myorder_share_status <=", value, "myorderShareStatus");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusIn(List<Integer> values) {
            addCriterion("myorder_share_status in", values, "myorderShareStatus");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusNotIn(List<Integer> values) {
            addCriterion("myorder_share_status not in", values, "myorderShareStatus");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusBetween(Integer value1, Integer value2) {
            addCriterion("myorder_share_status between", value1, value2, "myorderShareStatus");
            return (Criteria) this;
        }

        public Criteria andMyorderShareStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("myorder_share_status not between", value1, value2, "myorderShareStatus");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeIsNull() {
            addCriterion("myorder_share_time is null");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeIsNotNull() {
            addCriterion("myorder_share_time is not null");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeEqualTo(Date value) {
            addCriterion("myorder_share_time =", value, "myorderShareTime");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeNotEqualTo(Date value) {
            addCriterion("myorder_share_time <>", value, "myorderShareTime");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeGreaterThan(Date value) {
            addCriterion("myorder_share_time >", value, "myorderShareTime");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("myorder_share_time >=", value, "myorderShareTime");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeLessThan(Date value) {
            addCriterion("myorder_share_time <", value, "myorderShareTime");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeLessThanOrEqualTo(Date value) {
            addCriterion("myorder_share_time <=", value, "myorderShareTime");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeIn(List<Date> values) {
            addCriterion("myorder_share_time in", values, "myorderShareTime");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeNotIn(List<Date> values) {
            addCriterion("myorder_share_time not in", values, "myorderShareTime");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeBetween(Date value1, Date value2) {
            addCriterion("myorder_share_time between", value1, value2, "myorderShareTime");
            return (Criteria) this;
        }

        public Criteria andMyorderShareTimeNotBetween(Date value1, Date value2) {
            addCriterion("myorder_share_time not between", value1, value2, "myorderShareTime");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}